<?php use_helper('sfCryptoCaptcha') ?>
<div id="otoiawase">
	<h3 class="col1">REGISTER</h3>
	<br />
	<p class="lead_text2"><?php include_partial('common/errorMessage') ?></p>
	<form name="inquiry" id="inquiry" method="post" action="<?php echo url_for('@user_edit')?>">
		<table cellspacing="0" cellpadding="0" class="inq_table01" summary="<?php echo __('お問い合わせフォーム') ?>">
			<tr>
				<th>HỌ TÊN<span class="text_red">※</span></th>
				<td class="inputmax form_bg">
					</span><?php echo $form['txtName'] ?>
					<?php echo myCommonUtil::formatError($sf_request->getError('aryUser{txtName}')) ?>
				</td>
			</tr>
			<tr>
				<th>GIỚI TÍNH<span class="text_red">※</span></th>
				<td><?php echo $form['radIsMale'] ?></td>
			</tr>
			<tr>
				<th>NGÀY SINH<span class="text_red">※</span></th>
				<td class="inputmax form_bg">
					<?php echo $form['cmbBirthDay1'] ?>&nbsp;-&nbsp;<?php echo $form['cmbBirthDay2'] ?>&nbsp;-&nbsp;<?php echo $form['cmbBirthDay3'] ?>
					<?php echo myCommonUtil::formatError($sf_request->getError('aryUser{txtBirthDay}')) ?>
					<div id="hint2" style="margin-top: 5px">
						<?php ?>
					</div>
				</td>
			</tr>
			<tr>
				<th>EMAIL<span class="text_red">※</span></th>
				<td class="input_mail_max form_bg">
					<?php echo $form['txtMailAddress'] ?>
					<div id="hint3" style="margin-top: 5px">
						<?php echo 'Nhập email của bạn !' ?>
					</div>
					<?php echo myCommonUtil::formatError($sf_request->getError('aryUser{txtMailAddress}')) ?>
				</td>
			</tr>
			<tr>
				<th>EMAIL(XÁC NHẬN)<span class="text_red">※</span></th>
				<td class="input_mail_max form_bg">
					<?php echo $form['txtMailAddressConfirm'] ?>
					<?php echo myCommonUtil::formatError($sf_request->getError('aryUser{txtMailAddressConfirm}')) ?>
					<div id="hint3" style="margin-top: 5px">
						<?php echo 'Nhập lại email của bạn !' ?>
					</div>
				</td>
			</tr>
			<tr>
				<th>SỐ ĐIỆN THOẠI</th>
				<td>
					<?php echo $form['txtTel'] ?>
					<?php echo myCommonUtil::formatError($sf_request->getError('aryUser{txtTel}')) ?>
				</td>
			</tr>
			<tr>
				<th>ĐỊA CHỈ</th>
				<td>
					<?php echo $form['txtAddress'] ?>
				</td>
			</tr>
		</table>
	</form>
</div>
<script type="text/javascript">

	function focusYahoo()
	{
		initHint(0, 2);
		YAHOO.util.Event.on('aryUser_txtBirthDay', 'focus', showHint, 1, true);
		YAHOO.util.Event.on('aryUser_txtBirthDay', 'blur', hideHint, 1, true);
		YAHOO.util.Event.on('aryUser_txtMailAddress', 'focus', showHint, 2, true);
		YAHOO.util.Event.on('aryUser_txtMailAddress', 'blur', hideHint, 2, true);
		YAHOO.util.Event.on('aryUser_txtMailAddressConfirm', 'focus', showHint, 2, true);
		YAHOO.util.Event.on('aryUser_txtMailAddressConfirm', 'blur', hideHint, 2, true);
	}
	function onSubmit()
	{
		// Submit form
		var objForm = document.getElementById('inquiry');
		objForm.submit();
	}
	function onLoad()
	{
		updateJpDate('aryUser_hidBirthDay', 'aryUser_txtBirthDay');
		focusYahoo();
	}

	onLoad();
</script>
